文件处理方法、计算机可读存储介质及电子设备
Published in 发明专利 Invention patent, 2022
Recommended citation: Dayao Ji. (2022). "File processing method, computer-readable storage medium and electronic device." China patent. CN115455372A. https://patents.google.com/patent/CN115455372A
文件处理方法、计算机可读存储介质及电子设备
摘要:本申请提供文件处理方法、计算机可读存储介质及电子设备,该方法包括:针对源文件创建空的第一保护文件;基于操作区列表构建与所述源文件相关联的文件头部结构;对所述文件头部结构进行加密,并且基于加密后的所述文件头部结构和所述第一保护文件来形成第二保护文件;根据所述文件头部结构对所述源文件进行处理,并且基于处理后的所述源文件和所述第二保护文件来形成第三保护文件。本申请由于不对整个源文件进行加密,在实现对源文件进行保护的同时降低了对计算资源的需求,特别是对部署于计算资源受限的设备来说,提高了源文件在推理前解保护的速度。本申请的方法适用于对AI模型、各应用文档进行保护,对软硬件环境和场景不做限制,通用性强。
File processing method, computer-readable storage medium and electronic device
Abstract:The application provides a file processing method, a computer readable storage medium and an electronic device, wherein the method comprises the following steps: creating an empty first protection file for the source file; constructing a file header structure associated with the source file based on the list of operation regions; encrypting the file header structure and forming a second protected file based on the encrypted file header structure and the first protected file; processing the source file according to the file header structure, and forming a third protected file based on the processed source file and the second protected file. According to the method and the device, the whole source file is not encrypted, so that the source file is protected, meanwhile, the requirement on computing resources is reduced, and particularly, for the device which is limited in computing resources, the speed of source file protection solution before reasoning is improved. The method is suitable for protecting the AI model and each application document, does not limit the software and hardware environment and scenes, and has strong universality.
Recommended citation:
纪大峣. 文件处理方法、计算机可读存储介质及电子设备[P]. 中国:CN115455372A,2022-12-09.
D. Ji,”File processing method, computer-readable storage medium and electronic device,” China Patent CN115455372A, December 09,2022.
